package com.bjtu.transactionclient.dao;

import com.bjtu.transactionclient.domain.JournalPaperChinese;
import com.bjtu.transactionclient.domain.JournalPaperEnglish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author caiyuli
 * @since 2020-04-23
 */

@Repository("JournalPaperCnDao")

public interface JournalPaperCnDao  {


    Boolean add(JournalPaperChinese journalPaperChinese);

    @Select("select * from journalpaperstable2")
    List<JournalPaperChinese> queryAllJournalPaperChinese();

    @Select("select * from journalpaperstable2 where IndexNo = #{indexNo}")
    JournalPaperChinese queryByIndexNo(@Param("indexNo") String indexNo);

    @Select("select * from journalpaperstable2 where journalIndexNo = #{journalIndexNo}")
    List<JournalPaperChinese> queryByJournalIndexNo(@Param("journalIndexNo") String journalIndexNo);

}
